<?php echo $this->form; ?>
<?php

//echo "<button type='button' id='btnAgregar'>Agregar</button> ";
//echo "<button type='button' id='salvar_dato'>Guardar</button> ";
         
               echo "<img id='salvar_dato' src= '$this->baseUrl/images/save_32.png'>";
                echo "<img id='btnAgregar' src= '$this->baseUrl/images/add.png'>"; 
       
               echo "<div id='valorDeuda3'> <label id='valorDeuda3'>Valor:</label></div>";
           
             echo "Deuda:<br/><select class=textbox id='idDeuda'>";
        foreach ($this->Deuda as $c)
        {
            echo "<option data-valorDeuda='$c->pendiente' value='$c->id'>$c->descripcion</option>";
        }        
       echo "</select><br/>";
       
             echo "Tipo de Pago:<br/><select class=textbox id='idTipoPago'>";
        foreach ($this->TipoPago as $c)
        {
            echo "<option data-esBancario='$c->bancario' value='$c->id'>$c->descripcion</option>";
        }
        
       echo "</select><br/>";
       
           
           echo "<div class='Banco'>
                Banco:<br/><input class=textbox type=text name=banco id=banco><br/>                
                N Tarjeta Cheque:<br/><input class=textbox type=text name=nTarjetaCheque id=nTarjetaCheque onkeypress = 'return ValorMonedas(event,this,8,2);'><br/>
                Referencia:<br/><input class=textbox type=text name=referencia id=referencia>
             </div>";

           
         echo "<table  id='tablaPagos'>             
            <thead>
            <tr>             
                <th style='display:none;'>idDeuda</th>
                <th style='display:none;'>idTipoPago</th>
                <th>Deuda</th>
                <th>Tipo de Pago</th>
                <th>Valor</th>
                <th>Banco</th>
                <th>TipoPago</th>
                <th>Referencia</th>
            </tr>  
            </thead>
            
            <tfoot>
            <tr>
                <td></td>
                <td> Total</td>
                <td id=total>$0</td>
            </tr>
             </tfoot>
            </table>";
         
         
         ?>